<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css"/>
	</head>
	<body>
		<div class="am-g">
			 {include file='../Common/hy_header.html'}
			 	
      <div class="am-u-md-12 am-cf">
        <div class="am-fl am-cf">
          <div class="am-btn-toolbar am-fl">
          	<div class="am-btn-group am-btn-group-xs" style="line-height:31px;margin-left:60px;" >
				 总数<strong style="font-size:18px;color:#0e90d2"> {$total.count2} </strong> - 已发送<strong style="font-size:18px;color:#0e90d2"> {$total.count1} </strong>
				</div>
				<div class="am-btn-group am-btn-group-xs" style="line-height:31px;margin-left:60px;" >
				<form name="form1" id="form1" action ="index.php?g=admin&m=user&a=user_list" method="post" style="display:inline-block;">
					<select name="month1">
						
						<option  value="4" {if $range.month1 ==4} selected {/if}  >4</option>
						<option  value="5" {if $range.month1 ==5} selected {/if}  >5</option>
						<option  value="6" {if $range.month1 ==6} selected {/if}  >6</option>
						<option  value="7" {if $range.month1 ==7} selected {/if}  >7</option>
					
					</select> 月
					<select name="day1">
						<option value="1" {if $range.day1 ==1} selected {/if} >1</option>
						<option  value="2" {if $range.day1 ==2} selected {/if} >2</option>
						<option  value="3" {if $range.day1 ==3} selected {/if} >3</option>
						<option  value="4" {if $range.day1 ==4} selected {/if} >4</option>
						<option  value="5" {if $range.day1 ==5} selected {/if} >5</option>
						<option  value="6" {if $range.day1 ==6} selected {/if} >6</option>
						<option  value="7"{if $range.day1 ==7} selected {/if} >7</option>
						<option  value="8" {if $range.day1 ==8} selected {/if} >8</option>
						<option  value="9" {if $range.day1 ==9} selected {/if} >9</option>
						<option  value="10" {if $range.day1 ==10} selected {/if} >10</option>
						<option  value="11" {if $range.day1 ==11} selected {/if} >11</option>
						<option  value="12" {if $range.day1 ==12} selected {/if} >12</option>
						<option  value="13" {if $range.day1 ==13} selected {/if} >13</option>
						<option  value="14" {if $range.day1 ==14} selected {/if} >14</option>
						<option  value="15" {if $range.day1 ==15} selected {/if} >15</option>
						<option  value="16" {if $range.day1 ==16} selected {/if} >16</option>
						<option  value="17" {if $range.day1 ==17} selected {/if} >17</option>
						<option  value="18" {if $range.day1 ==18} selected {/if} >18</option>
						<option  value="19" {if $range.day1 ==19} selected {/if} >19</option>
						<option  value="20" {if $range.day1 ==20} selected {/if} >20</option>
						<option  value="21" {if $range.day1 ==21} selected {/if} >21</option>
						<option  value="22" {if $range.day1 ==22} selected {/if} >22</option>
						<option  value="23" {if $range.day1 ==23} selected {/if}>23</option>
						<option  value="24" {if $range.day1 ==24} selected {/if} >24</option>
						<option  value="25" {if $range.day1 ==25} selected {/if} >25</option>
						<option  value="26" {if $range.day1 ==26} selected {/if} >26</option>
						<option  value="27" {if $range.day1 ==27} selected {/if} >27</option>
						<option  value="28" {if $range.day1 ==28} selected {/if} >28</option>
						<option  value="29" {if $range.day1 ==29} selected {/if}>29</option>
						<option  value="30" {if $range.day1 ==30} selected {/if}>30</option>
						<option  value="31" {if $range.day1 ==31} selected {/if} >31</option>
					</select> 号
					&nbsp;- &nbsp;
					<select name="month2">
						<option  value="5" {if $range.month2 ==5} selected {/if}  >5</option>
						<option  value="6" {if $range.month2 ==6} selected {/if}  >6</option>
						<option  value="7" {if $range.month2 ==7} selected {/if}  >7</option>
					</select> 月
					<select name="day2">
												<option value="1" {if $range.day1 ==1} selected {/if} >1</option>
						<option  value="2" {if $range.day2 ==2} selected {/if} >2</option>
						<option  value="3" {if $range.day2 ==3} selected {/if} >3</option>
						<option  value="4" {if $range.day2 ==4} selected {/if} >4</option>
						<option  value="5" {if $range.day2 ==5} selected {/if} >5</option>
						<option  value="6" {if $range.day2 ==6} selected {/if} >6</option>
						<option  value="7"{if $range.day2 ==7} selected {/if} >7</option>
						<option  value="8" {if $range.day2 ==8} selected {/if} >8</option>
						<option  value="9" {if $range.day2 ==9} selected {/if} >9</option>
						<option  value="10" {if $range.day2 ==10} selected {/if} >10</option>
						<option  value="11" {if $range.day2 ==11} selected {/if} >11</option>
						<option  value="12" {if $range.day2 ==12} selected {/if} >12</option>
						<option  value="13" {if $range.day2 ==13} selected {/if} >13</option>
						<option  value="14" {if $range.day2 ==14} selected {/if} >14</option>
						<option  value="15" {if $range.day2 ==15} selected {/if} >15</option>
						<option  value="16" {if $range.day2 ==16} selected {/if} >16</option>
						<option  value="17" {if $range.day2 ==17} selected {/if} >17</option>
						<option  value="18" {if $range.day2 ==18} selected {/if} >18</option>
						<option  value="19" {if $range.day2 ==19} selected {/if} >19</option>
						<option  value="20" {if $range.day2 ==20} selected {/if} >20</option>
						<option  value="21" {if $range.day2 ==21} selected {/if} >21</option>
						<option  value="22" {if $range.day2 ==22} selected {/if} >22</option>
						<option  value="23" {if $range.day2 ==23} selected {/if}>23</option>
						<option  value="24" {if $range.day2 ==24} selected {/if} >24</option>
						<option  value="25" {if $range.day2 ==25} selected {/if} >25</option>
						<option  value="26" {if $range.day2 ==26} selected {/if} >26</option>
						<option  value="27" {if $range.day2 ==27} selected {/if} >27</option>
						<option  value="28" {if $range.day2 ==28} selected {/if} >28</option>
						<option  value="29" {if $range.day2 ==29} selected {/if}>29</option>
						<option  value="30" {if $range.day2 ==30} selected {/if}>30</option>
						<option  value="31" {if $range.day2 ==31} selected {/if} >31</option>
					</select> 号
					
					
				</form>
				发送<strong style="font-size:18px;color:#0e90d2"> {$total.count3|default:"0"}</strong>
				</div>
				<div class="am-btn-group am-btn-group-xs" style="line-height:31px;;width: 98px;height: 31px;overflow: hidden;" >
              
					<button   class="am-btn am-btn-default" onclick="document.form1.submit();" style="display:inline-block;;">提交</button>
				
				</div>
				
            <div class="am-btn-group am-btn-group-xs" style="line-height:31px;margin-left:60px;;width: 98px;height: 31px;overflow: hidden;margin-bottom:20px" >
              
              <button   onclick="$(this).next().children('form').children('.ke-upload-file').click()"   type="button" class="am-btn am-btn-default hy-js-href"><span class="am-icon-trash-o"></span> 导入激活码</button>
              <input id="uploadButton_1" return_url="img_url"  value="" style="width:0px;height:0px;position:absolute;top:100px;display:inline-block;"/>
            </div>
			
          </div>
        </div>
      </div>
     <!--  <div class="am-u-md-3 am-cf">
        <div class="am-fr">
          <div class="am-input-group am-input-group-sm">
            <input type="text" value="{$_GET['k']}" class="am-form-field hy-js-search">
                <span class="am-input-group-btn">
                  <button class="am-btn am-btn-default hy-js-searchbtn" type="button">搜索</button>
                </span>
          </div>
        </div>
      </div> -->
      
      <div class="am-g">
      <div class="am-u-sm-12">
        <div class="am-form">
          <table class="am-table am-table-striped am-table-hover hy-table-main">
            <thead>
              <tr>
                <th class="table-check"></th>
                <th class="table-id">ID</th>
                <th class="table-title">序列号</th>
                <th class="table-type">微信昵称</th>
                <th class="table-author">地区</th>
                <th class="table-date">创建时间</th>
               
              </tr>
          </thead>
          <tbody>
          	{foreach from=$sql_list item=user}
            <tr>
              <td></td>
              <td>{$user.order}</td>
              <td>{$user.sn}</td>
              <td>{$user.nickname|default:"-"}</td>
              <td>{$user.province}{$user.city|default:"-"}</td>
              <td>{$user.addtime|default:"-"|date_format:"Y-m-d"}</td>
             
            </tr>
             {/foreach} 
          </tbody>
        </table>
          <div class="am-cf">

  <div class="am-fr" style="margin-right:100px">
  {$list_page}
  </div>
</div>
          <hr />
      
        </div>
      </div>

    </div>
    </div>
   {include file='../Common/hy_footer.html'}
   <script type="text/javascript" src="Admin/webroot/js/editor/kindeditor.js"></script>
<script type="text/javascript" src="Admin/webroot/js/kindeditor_upload.js">
</script>
	</body>
	
	<script>
		
		$(function(){ 
    	
		hungry_uploadimg('index.php?g=admin&m=user&a=excel',function(data){
			$("img#loading_img_url").hide();
			console.log(data);
			if(data.error==0)
			{
				
				window.location.href='index.php?g=admin&m=user&a=import_user&f='+data.url;
			   console.log(123);
			}
			else
			{
				alert('导入失败');
			}
			
		});
		});


	</script>
	
</html>
